﻿using System.ComponentModel.DataAnnotations;  // 引入数据验证注解

namespace StudentWeb.BLL
{
    /// <summary>
    /// 分页查询请求参数模型
    /// </summary>
    public class PagedListReq
    {
        /// <summary>
        /// 页码，必须大于零
        /// </summary>
        [Range(1, int.MaxValue)]
        public int pageIndex { get; set; }

        /// <summary>
        /// 每页大小，必须大于零
        /// </summary>
        [Range(1, int.MaxValue)]
        public int pageSize { get; set; }

        /// <summary>
        /// 查询条件，支持动态查询
        /// </summary>
        public dynamic? condition { get; set; }
    }
}
